//
//  UserInfo.m
//  MiAiApp
//
//  Created by 徐阳 on 2017/5/23.
//  Copyright © 2017年 徐阳. All rights reserved.
//

#import "UserInfo.h"

@implementation UserInfo
+ (NSDictionary*)modelCustomPropertyMapper{
    return @{@"userId":@"id"};
}
- (NSString*)sexStr{
    if (self.sex == UserGenderMale) {
        return XLocalized(@"男");
    }else if(self.sex == UserGenderFemale){
        return  XLocalized(@"女");
    }else{
        return XLocalized(@"不详");
    }
}

- (NSString *)headimgurl{
    if ([_headimgurl hasPrefix:URL_ImageData]) {
        return _headimgurl;
    }
    return NSStringFormat(@"%@%@",URL_ImageData,_headimgurl);
}


@end
